package com.melesta.payment.sms;

import com.melesta.payment.interfaces.IRequestBuilder;

public class SmsRecuestBuilder
  implements IRequestBuilder
{
  private static final String MESSAGE_TAG = "message";
  private static final String NAME_TAG = "name";
  private static final String NUMBER_TAG = "number";
  private SmsRequest request;

  public SmsRecuestBuilder(SmsSystem paramSmsSystem)
  {
    this.request = new SmsRequest(paramSmsSystem);
  }

  public SmsRequest createRequest()
  {
    return new SmsRequest(this.request.getSystem()).setName(this.request.getName()).setNumber(this.request.getNumber()).setMessage(this.request.getMessage());
  }

  public Object get(String paramString)
  {
    if (paramString.equals("name"))
      return this.request.getName();
    if (paramString.equals("number"))
      return this.request.getNumber();
    if (paramString.equals("message"))
      return this.request.getMessage();
    return null;
  }

  public IRequestBuilder set(String paramString, Object paramObject)
  {
    if (paramString.equals("name"))
      this.request.setName(paramObject.toString());
    do
    {
      return this;
      if (paramString.equals("number"))
      {
        this.request.setNumber(paramObject.toString());
        return this;
      }
    }
    while (!paramString.equals("message"));
    this.request.setMessage(paramObject.toString());
    return this;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.payment.sms.SmsRecuestBuilder
 * JD-Core Version:    0.6.2
 */